//
//  SNDeviceModel.m
//  project
//
//  Created by 黄建华 on 2018/1/9.
//  Copyright © 2018年 黄建华. All rights reserved.
//

#import "SNDeviceModel.h"

@implementation SNDeviceModel

- (instancetype)init {
    self = [super init];
    if (self) {
    }
    
    return self;
}

+ (SNDeviceModel *)parseString:(NSString *)string {
    SNDeviceModel *model = [string toModel:[self class]];
    
    return model;
}

// 表名
+ (NSString *)getTableName {
    return @"SNDeviceModel";
}

// 主键
+ (NSString *)getPrimaryKey {
    return @"deviceName";
}

//// 复合主键
//+ (NSArray *)getPrimaryKeyUnionArray
//{
//    return @[@"deviceName", @"date"];
//}

// 表版本
+ (int)getTableVersion {
    return 1;
}

+ (void)initialize {
    [super initialize];
}

@end

